From afbd6212f3a738fb58a6ad81f48c3d69b3ca73b9 Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Fri, 8 Sep 2023 00:43:45 +0200 Subject: [PATCH] Update the list of Ubuntu release names Forwarded: no Last-Update: 2023-04-29 Gbp-Pq: Name ubuntu-releases.patch --- clang/include/clang/Driver/Distro.h | 4 +++- clang/lib/Driver/Distro.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index 01d66b30b0..a4f70e6723 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -76,6 +76,8 @@ public: UbuntuImpish, UbuntuJammy, UbuntuKinetic, + UbuntuLunar, + UbuntuMantic, UnknownDistro }; @@ -127,7 +129,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic; } bool IsAlpineLinux() const { return DistroVal == AlpineLinux; } diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 1898667279..c62fe07a46 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -92,6 +92,8 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { .Case("impish", Distro::UbuntuImpish) .Case("jammy", Distro::UbuntuJammy) .Case("kinetic", Distro::UbuntuKinetic) + .Case("lunar", Distro::UbuntuLunar) + .Case("mantic", Distro::UbuntuMantic) .Default(Distro::UnknownDistro); return Version; } -- 2.30.2